﻿// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
// Licensed under the LGPL License, Version 3.0. See License.txt in the project root for license information.
// Website: https://admin.blazor.zone

using System.Collections.Generic;

namespace BlazorAdmin.Interface
{
    /// <summary>
    /// 
    /// </summary>
    public interface IApp
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="roleId"></param>
        /// <returns></returns>
        List<string> GetAppsByRoleId(int roleId);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="roleId"></param>
        /// <param name="appIds"></param>
        /// <returns></returns>
        bool SaveAppsByRoleId(int roleId, IEnumerable<string> appIds);
    }
}